-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[RFR] Documentation for the Ldap component #6402
Conversation
csarrazi
commented
Mar 27, 2016
Q | A |
---|---|
Doc fix? | no |
New docs? | yes |
Applies to | 2.8, 3.0 |
Fixed tickets | #6201 #5756 |
@csarrazi thanks for this!! Bootstrapping documentation for a new component is very hard ... but at the same time very much appreciated! I have a global question about the proposed docs. Sometimes you write |
The Ldap Component | ||
================== | ||
|
||
The Ldap component provides a means to connect to an Ldap server (OpenLdap or Active Directory). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This description should be very concise, so you did it great. However, if this component adds LDAP support to the Symfony Security component, maybe we should mention it. Right now it looks like this component is stand-alone and not integrated with Symfony security.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The component is indeed standalone. The security component actually is the one which integrates LDAP functionality in Symfony.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, and I'm actually currently writing the doc for the Security component, too, which is why the PR is still WIP.
@javiereguiluz Yes, that's what is intended. However, as I wrote this quite late in the evening, I wasn't very consistent. Same thing with |
Still needs to pass on all files to normalize Also, |
Is there anything left to do on this PR? We're in the progress of updating our applications to Symfony 3 and the ldap packages used do not support 3.0 thus we will have to implement our own. Sadly the documentation is still missing :( |
The only remaining part is the cookbook, which is not finalized. Indeed, the configuration sections at the end is not ready yet: Only a few yaml examples are ready, and the configuration for other formats (php, xml) is definitely not ready, as I generally do not use these. |
Done. @javiereguiluz could you take a look at it? |
By the way, this documentation is for version 2.8 and 3.0 of the Ldap component. Changes brought in 3.1 will be addressed in another PR. |
|
||
* Checking a user's password and fetching user information against an | ||
LDAP server. This can be done using both the LDAP user provider and | ||
either the LDAP form login or LDAP http basic authentication providers. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
http
-> HTTP
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
I left some unimportant comments but overall I like this documentation a lot: you went straight to the point, everything is clearly explained and there are a ton of useful examples. You did a truly amazing job here. Thanks! |
The Ldap Component | ||
================== | ||
|
||
The Ldap component provides a means to connect to an LDAP server (OpenLDAP or Active Directory). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It sounds weird to use an "a" with a plural, shouldn't it be "provides (the/some)? means"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, this is how the word means
works. In its singular form, it still takes an s
. :)
Also, as the Ldap component is not the only means to connect to an LDAP server, the article a
is correct, here. :)
Comments corrected. By the way, the PR for 3.1 will be quite small in comparison, as the only difference will be the description of the new way to define the |
Are there still missing things here? I'd like to be able to work on adding the doc for version 3.1 of the Ldap component before the 3.1 release. Ping @javiereguiluz |
The :class:`Symfony\\Component\\Ldap\\LdapClient` class can be configured | ||
using the following options: | ||
|
||
* host: IP or hostname of the LDAP server |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would enclose the option names with literals (double backticks).
Anything else to do @xabbuh, @javiereguiluz? |
@csarrazi nothing else for me ... except saying thank you for your great work! I'm sure that doc maintainers will merge this soon. We want to document lots of things before the 3.1 release in 5 days. |
Yeah. And this needs to be merged so I can update the docs for 3.1. |
@javiereguiluz I counted your last comment as a +1 vote. So I am going to merge here. |
@csarrazi Thanks for your work on this new feature! |
You're welcome. I'll work on the 3.1 doc asap! |
@csarrazi I merged your changes up into the |